<?php


namespace app\common\model;


class UserType extends Common
{
    /**
     * @param $type 指定策略
     * @param int $status 1 正常
     * @return array $data ID/身份/URL
     */
    public function get_this_user_type($type,$status = 1)
    {
        if(!is_numeric($type)) {
            exception('非法传参');
        }
        $data = [
            'id' => $type,
            'status' => $status
        ];
        return $this->where($data)->find();
    }
}